lib/repo: Fix repo-finder deleting remote configs when run
authorPhilip Withnall <withnall@endlessm.com>
Thu, 29 Jun 2017 23:43:31 +0000 (00:43 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 29 Jun 2017 23:49:25 +0000 (23:49 +0000)
commitacace571efb0fe6410e6464e715d1f50f832a9a7
treedc096e1d677cffb175efc7b2c5c29d0630932a9b
parentaa26db825f492c7ada9bf4d820f6337681ef089e
lib/repo: Fix repo-finder deleting remote configs when run

An inverted condition in _ostree_repo_add_remote() was causing the
OstreeRepoFinder to delete precisely the wrong remote
configurations from memory once it was finished. It’s supposed to delete
the ones which it transiently added; but was instead deleting all the
existing remote configurations.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #985
Approved by: cgwalters
src/libostree/ostree-repo.c